package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Collect;
import cn.wolfcode.trip.base.query.CollecQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Collect record);

    Collect selectByPrimaryKey(Long id);

    List<Collect> selectAll();

    int updateByPrimaryKey(Collect record);

    Collect selectByState(Collect collect);

    Collect selectCollect(Collect collect);

    Collect selectByUserId(@Param("userId") Long userId,@Param("collectId")Long collectId);

    int selectCount(Collect collect);

    List<Collect> getAllType();

    List<Integer> selectCollectId(Collect collect);

}